package com.cq.hd.member.po;

import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 会员套餐配置表
 * </p>
 *
 * @author mYunYu
 * @since 2023-12-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_member_fee_config")
@ApiModel(value="TbMemberFeeConfigPo对象", description="会员套餐配置表")
public class TbMemberFeeConfigPo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "套餐名称")
    @TableField("member_name")
    private String memberName;

    @ApiModelProperty(value = "套餐费用")
    @TableField("member_fee")
    private BigDecimal memberFee;

    @ApiModelProperty(value = "划线价格")
    @TableField("origin_fee")
    private BigDecimal originFee;

    @ApiModelProperty(value = "活动发布次数")
    @TableField("active_count")
    private Integer activeCount;

    @ApiModelProperty(value = "有效期(月)")
    @TableField("valid_month")
    private Integer validMonth;

    @ApiModelProperty(value = "排序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty(value = "显示状态(1-显示，2-隐藏)")
    @TableField("show_state")
    private Integer showState;

    @ApiModelProperty(value = "创建者")
    @TableField("create_by")
    private Integer createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "更新者")
    @TableField("update_by")
    private Integer updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "删除状态:0-正常，1-已删除")
    @TableField("del_state")
    private Integer delState;

    @ApiModelProperty(value = "会员类型：1商场版 2商户版")
    @TableField("member_type")
    private Integer memberType;

    @ApiModelProperty(value = "最多可邀请经纪人数量(累计)。null表示不限制")
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private Integer maxInviteAgentCount;

    @ApiModelProperty(value = "单活动商户数（一个活动最多引用几个商户的产品）。null表示不限制")
    @TableField(insertStrategy = FieldStrategy.IGNORED, updateStrategy = FieldStrategy.IGNORED)
    private Integer singleActiveMerchantCount;
}
